<!DOCTYPE html>
<html lang="">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=no">
    <link rel="icon" href="<%= BASE_URL %>favicon.ico">
    <title><%= htmlWebpackPlugin.options.title %></title>
    <style>
        .host-video-page {
            max-width: 750px;
            margin: 0 auto;
        }
    </style>
</head>
<body>
<noscript>
    <strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled.
        Please enable it to continue.</strong>
</noscript>
<div id="app"></div>
<!-- built files will be auto injected -->
<script>
    //基准大小
    const baseSize = 16

    // 设置 rem 函数
    function setRem() {
        const salepro = document.documentElement.clientWidth / 750
        // 当前页面宽度相对于 750 宽的缩放比例，可根据自己需要修改.
        // 设置页面根节点字体大小
        document.documentElement.style.fontSize = (baseSize * Math.min(salepro, 2)) + 'px'
    }

    // 初始化
    setRem()
    // 改变窗口大小时重新设置 rem
    window.onresize = function () {
        setRem()
    }
</script>
</body>
</html>
